package com.zzw.service.impl;

import com.zzw.bean.ClassInfo;
import com.zzw.bean.OrderForm;
import com.zzw.bean.OrderFormVo;
import com.zzw.bean.Teacher;
import com.zzw.dao.ITeacherDao;
import com.zzw.service.IOrderFormService;
import com.zzw.service.ISearchService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * Created by David on 2017/12/15.
 */
@Service
public class SearchServiceImpl implements ISearchService {
    @Resource
    private ITeacherDao teacherDao;

    /**
     * desc：通过查找是否有某位老师，返回结果 是、否 = “1” 、“0”
     */
    public String searchTeacherName(String teachername) {
        String result = teacherDao.searchTeacherIdByName(teachername);
        return result;
    }


}
